package schoolWord;

public class Test {
    public static void main(String[] args) {
        //a.将字符串 "123.45" 转换成数字123.45
        String str = "123.45";
        System.out.println(Double.parseDouble(str));

        //b.将6789转化成字符串"6789"
        int num = 6789;
        System.out.println(Integer.toString(num));

       // System.out.println(String.valueOf(num));

        //  System.out.println(num + "");


        //c.将数值1.23包装成对象类型
        double d = 1.23;
        Double D = d;
       // System.out.println(D);
        // d.将c中的对象类型转换成数值

        double val = D.doubleValue();
        System.out.println(val);
    }
}
